/*
package com.shen.demo.demos.web.compont.druidCompont;

import com.shen.demo.demos.web.domain.entry.UserName;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import javax.persistence.*;

@Component
public class UserNameListener {
    private final String LOG_PREFIX = "userNameListener 实体持久化监听>>>>>> UserName实体执行";
    private final String LOG_POSTFIX = "<<<<<<";
    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    */
/**
     * @param userName
     *//*

    @PrePersist
    public void PrePersist(UserName userName) {
        System.out.println("数据更行");
        this.logger.info("{} [{}] {}", this.LOG_PREFIX, "新增操作之前", LOG_POSTFIX);
    }

    */
/**
     * @param userName
     *//*

    @PostPersist
    public void PostPersist(UserName userName) {
        System.out.println("数据更行");
        this.logger.info("{} [{}] {}", this.LOG_PREFIX, "新增操作之后", LOG_POSTFIX);
    }

    */
/**
     * @param userName
     *//*

    @PreUpdate
    public void PreUpdate(UserName userName) {
        System.out.println("数据更行");
        this.logger.info("{} [{}] {}", this.LOG_PREFIX, "更新操作之前", LOG_POSTFIX);
    }

    */
/**
     * @param userName
     *//*

    @PostUpdate
    public void PostUpdate(UserName userName) {
        System.out.println("数据更行");
        this.logger.info("{} [{}] {}", this.LOG_PREFIX, "更新操作之后", LOG_POSTFIX);
    }

    */
/**
     * @param userName
     *//*

    @PreRemove
    public void PreRemove(UserName userName) {
        System.out.println("数据更行");
        this.logger.info("{} [{}] {}", this.LOG_PREFIX, "删除操作之前", LOG_POSTFIX);
    }

    */
/**
     * @param userName
     *//*

    @PostRemove
    public void PostRemove(UserName userName) {
        System.out.println("数据更行");
        this.logger.info("{} [{}] {}", this.LOG_PREFIX, "删除操作之后", LOG_POSTFIX);
    }
}

*/
